package com.example.takeaway.websocket.message;

import lombok.Data;

/**
 * @author 邢晨旭
 * {@code @date} 2023/10/26
 */
@Data
public class OrderNewMessage extends AbstractMessage {
    private String orderId;

    public OrderNewMessage() {
        this.type = MessageType.ORDER_NEW.getType();
    }
    public OrderNewMessage(String orderId) {
        this.type = MessageType.ORDER_NEW.getType();
        this.orderId = orderId;
    }
}
